﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TF.Access;

public partial class UploadUserPic : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        TF_UserProfile up = WebUtility.GetUserProfile();
        if (up != null)
        {
            ClientScriptManager s = Page.ClientScript;
            s.RegisterStartupScript(typeof(UploadUserPic), "setUrl", string.Format("<script>setImage('{0}');</script>", up.Pic));
        }
    }
}
